package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.Department;
import com.ruoyi.system.mapper.DepartmentMapper;
import com.ruoyi.system.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 部门股那里Service业务层处理
 * 
 * @author hxj
 * @date 2022-01-25
 */
@Service
public class DepartmentServiceImpl implements IDepartmentService
{
    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 查询部门股那里
     * 
     * @param id 部门股那里主键
     * @return 部门股那里
     */
    @Override
    public Department selectDepartmentById(Integer id)
    {
        return departmentMapper.selectDepartmentById(id);
    }

    /**
     * 查询部门股那里列表
     * 
     * @param department 部门股那里
     * @return 部门股那里
     */
    @Override
    public List<Department> selectDepartmentList(Department department)
    {
        return departmentMapper.selectDepartmentList(department);
    }

    /**
     * 新增部门股那里
     * 
     * @param department 部门股那里
     * @return 结果
     */
    @Override
    public int insertDepartment(Department department)
    {
        return departmentMapper.insertDepartment(department);
    }

    /**
     * 修改部门股那里
     * 
     * @param department 部门股那里
     * @return 结果
     */
    @Override
    public int updateDepartment(Department department)
    {
        return departmentMapper.updateDepartment(department);
    }

    /**
     * 批量删除部门股那里
     * 
     * @param ids 需要删除的部门股那里主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentByIds(Integer[] ids)
    {
        return departmentMapper.deleteDepartmentByIds(ids);
    }

    /**
     * 删除部门股那里信息
     * 
     * @param id 部门股那里主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentById(Integer id)
    {
        return departmentMapper.deleteDepartmentById(id);
    }
}
